// Arup Guha
// 6/15/2023
// Solution to SIUCF CP Contest 2 Problem: Betting
// https://open.kattis.com/problems/betting

using namespace std;
#include <iostream>

int main() {

    int p;
    cin >> p;

    // This is all they want.
    cout << 100.0/p << endl;
    cout << 100.0/(100-p) << endl;

    return 0;
}
