buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
N = str(input()) hon = [2,4,5,7,9] for i in hon: if N[-1] == str(i): print("hon") break elif N[-1] == "3": print("bon") break else: print("pon") break
N = str(input()) hon = [2,4,5,7,9] for i in hon: if N[-1] == str(i): print("hon") exit() if N[-1] == "3": print("bon") else: print("pon")
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 0, 7, 8, 196, 0, 57, 75, 665, 0, 683], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["-", 0, 57, 75, 665, 64, 196, 0, 93, 0, 94], ["-", ...
5
72
# region import sys import itertools DEBUG = True if (len(sys.argv) > 1 and sys.argv[1] == "DEBUG") else False def dp(value): if DEBUG: print(value) return def input_text(split=" "): # 入力 result = [] while True: try: row = list( map(lambda x: int(x) i...
# region import sys import itertools DEBUG = True if (len(sys.argv) > 1 and sys.argv[1] == "DEBUG") else False def dp(value): if DEBUG: print(value) return def input_text(split=" "): # 入力 result = [] while True: try: row = list( map(lambda x: int(x) i...
[["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612]]
5
185
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rrep(i, n) for (int(i) = ((n)-1); (i) >= 0; (i)--) #define itn int #define miele(v) min_element(v.begin(), v.end()) #define maele(v) max_element(v.begin(), v.end()) #define SUM(v) accumulate(...
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rrep(i, n) for (int(i) = ((n)-1); (i) >= 0; (i)--) #define itn int #define miele(v) min_element(v.begin(), v.end()) #define maele(v) max_element(v.begin(), v.end()) #define SUM(v) accumulate(...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
1,079
#include <iostream> using namespace std; int main() { string x; cin >> x; if (x.at(x.size() - 1) == 3) cout << "bon"; else if (x.at(x.size() - 1) == 0 || x.at(x.size() - 1) == 1 || x.at(x.size() - 1) == 6 || x.at(x.size() - 1) == 8) cout << "pon"; else cout << "hon"; }
#include <iostream> using namespace std; int main() { string x; cin >> x; if (x.at(x.size() - 1) == '3') cout << "bon"; else if (x.at(x.size() - 1) == '0' || x.at(x.size() - 1) == '1' || x.at(x.size() - 1) == '6' || x.at(x.size() - 1) == '8') cout << "pon"; else cout << "hon"; }
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
118
#include <stdio.h> int main() { int N; scanf("%d", &N); if (N % 10 == 0 || N % 10 || N % 10 == 6 || N % 10 == 8) printf("pon"); else if (N % 10 == 3) printf("bon"); else printf("hon"); return 0; }
#include <stdio.h> int main() { int N; scanf("%d", &N); if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) printf("pon"); else if (N % 10 == 3) printf("bon"); else printf("hon"); return 0; }
[["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 12, 13]]
0
79
#include <iostream> using namespace std; int main() { string N; char c; cin >> N; int size; size = N.size(); c = N[size]; switch (c) { case '2': case '4': case '5': case '7': case '9': cout << "hon" << endl; break; case '0': case '1': case '6': case '8': cout << "pon" << e...
#include <iostream> using namespace std; int main() { string N; char c; cin >> N; int size; size = N.size() - 1; c = N[size]; switch (c) { case '2': case '4': case '5': case '7': case '9': cout << "hon" << endl; break; case '0': case '1': case '6': case '8': cout << "pon" ...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
126
n=int(input()) n=n%10 a=[2,4,5,7,9] b=[0,1,6,8] c=[3] if n in a: print("hon") if n in b: print("bon") if n in c: print("pon")
n=int(input()) n=n%10 a=[2,4,5,7,9] b=[0,1,6,8] c=[3] if n in a: print("hon") if n in b: print("pon") if n in c: print("bon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
75
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int num; cin >> num; int ans = ans % 10; if (ans == 3) { cout << "bon" << endl; return 0; } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) { cout << "pon" << endl; return 0; } else { ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int num; cin >> num; int ans = num % 10; if (ans == 3) { cout << "bon" << endl; return 0; } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) { cout << "pon" << endl; return 0; } else { ...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22]]
1
95
n = str(input()) if n[-1] == 3: print('bon') elif (n[-1] == 0) or (n[-1] == 1) or (n[-1] == 6) or (n[-1]==8): print('pon') else: print('hon')
n = str(input()) if n[-1] == '3': print('bon') elif (n[-1] == '0') or (n[-1] == '1') or (n[-1] == '6') or (n[-1]=='8'): print('pon') else: print('hon')
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 23, 0, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 23, 0, 666, 0, 557, 0, 655], ["+", 31, 679, 12, 23, 0, 666, 0, 557, 0, 654], ["+", 31, 679, 12, 23, 0, 666, 0, 557, 0, 655], ["+", 15, 679, 12, 23, 0, 666, 0,...
5
78
x = int(input()[-1]) if x == [2,4,5,7,9]: print("hon") elif x == [0,1,6,8]: print("pon") else: print("bon")
x = int(input()[-1]) if x in [2,4,5,7,9]: print("hon") elif x in [0,1,6,8]: print("pon") else: print("bon")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 267], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267]]
5
60
#include <bits/stdc++.h> using namespace std; void __print(int x) { cout << x; } void __print(long x) { cout << x; } void __print(long long x) { cout << x; } void __print(unsigned x) { cout << x; } void __print(unsigned long x) { cout << x; } void __print(unsigned long long x) { cout << x; } void __print(float x) { co...
#include <bits/stdc++.h> using namespace std; void __print(int x) { cout << x; } void __print(long x) { cout << x; } void __print(long long x) { cout << x; } void __print(unsigned x) { cout << x; } void __print(unsigned long x) { cout << x; } void __print(unsigned long long x) { cout << x; } void __print(float x) { co...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
669
#include <bits/stdc++.h> using namespace std; int main() { int n, a; cin >> n; a = n / 10; if (a == 3) cout << "bon" << endl; else if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon" << endl; else cout << "hon" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, a; cin >> n; a = n % 10; if (a == 3) cout << "bon" << endl; else if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon" << endl; else cout << "hon" << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
77
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; map<int, string> mp; mp[2] = mp[4] = mp[5] = mp[7] = mp[9] = "hon"; mp[0] = mp[1] = mp[6] = mp[8] = "pon"; mp[3] = "bon"; cout << mp[s[0] - '0']; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; map<int, string> mp; mp[2] = mp[4] = mp[5] = mp[7] = mp[9] = "hon"; mp[0] = mp[1] = mp[6] = mp[8] = "pon"; mp[3] = "bon"; cout << mp[s.back() - '0']; }
[["-", 341, 342, 0, 16, 31, 69, 341, 342, 0, 70], ["-", 341, 342, 0, 16, 31, 69, 341, 342, 0, 13], ["-", 341, 342, 0, 16, 31, 69, 341, 342, 0, 73], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 17, 131], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 119, 120], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 24], ["+", 341, 342, 0, 16, 31, 2,...
1
103
N = input() a = int(N[-1]) if a == 2 or a ==4or a ==7 or a == 9: print("hon") if a == 0 or a ==1 or a==6 or a==8: print("pon") if a == 3: print("bon")
N = input() a = int(N[-1]) if a == 2 or a ==4or a ==7 or a == 9 or a ==5: print("hon") if a == 0 or a ==1 or a==6 or a==8: print("pon") if a == 3: print("bon")
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]]
5
72
n=input() a=[2,4,5,7,9] b=[0,1,6,8] c=[3] if n[-1] in a: print("hon") elif n[-1] in b: print("pon") else: print("bon")
n=input() a=[2,4,5,7,9] b=[0,1,6,8] c=[3] if int(n[-1]) in a: print("hon") elif int(n[-1]) in b: print("pon") else: print("bon")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]]
5
72
n = input() m = int(n[-1]) if m == 3: print('bon') elif m == [0, 1, 6, 8]: print('pon') elif m ==[2, 4, 5, 7, 9]: print('hon')
n = input() m = int(n[-1]) if m == 3: print('bon') elif m in [0, 1, 6, 8]: print('pon') elif m in [2, 4, 5, 7, 9]: print('hon')
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267]]
5
66
N=input() a=[] a=N b=a[int(len(N))-1] print(b) b=int(b) if(b in [0,1,6,8]): print('pon') elif(b in [3]): print('bon') else: print('hon')
N=input() a=[] a=N b=a[int(len(N))-1] b=int(b) if(b in [0,1,6,8]): print('pon') elif(b in [3]): print('bon') else: print('hon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
80
n = input() if n[:-1] == "3": print("bon") elif n[:-1] == "0" or n[:-1] == "1"or n[:-1] == "6" or n[:-1] == "8": print("pon") else: print("hon")
n = input() if n[-1] == "3": print("bon") elif n[-1] == "0" or n[-1] == "1"or n[-1] == "6" or n[-1] == "8": print("pon") else: print("hon")
[["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 102], ["-", 31, 679, 31, 666, 0, 206, 206, 663, 0, 102], ["-", 31, 679, 12, 666, 0, 206, 206, 663, 0, 102], ["-", 15, 679, 12, 666, 0, 206, 206, 663, 0, 102]]
5
82
N=str(input()) if N[-1]=="2"or N[-1]=="4"or N[-1]=="5"or N[-1]=="7"or N[-1]=="9": print("hon") elif N[-1]=="0" or N[-1]=="1"or N[-1]=="6"or N[-1]=="8": print("pon") elif N[-1]=="3": print("bon")
#Ans N=str(input()) if N[-1]=="2"or N[-1]=="4"or N[-1]=="5"or N[-1]=="7"or N[-1]=="9": print("hon") elif N[-1]=="0" or N[-1]=="1"or N[-1]=="6"or N[-1]=="8": print("pon") elif N[-1]=="3": print("bon")
[["-", 31, 679, 31, 679, 31, 666, 0, 557, 0, 6], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 6]]
5
129
from sys import stdin n = int(stdin.readline().rstrip()[-1]) if n == '3': print('bon') elif n in ['0', '1', '6', '8']: print('pon') else: print('hon')
from sys import stdin n = int(stdin.readline().rstrip()[-1]) if n == 3: print('bon') elif n in [0, 1, 6, 8]: print('pon') else: print('hon')
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["-", 75, 665, 15, 666, 0, 634, 0, 557, 0, 654], ["-", 75, 665, 15, 666, 0, 634, 0, 557, 0, 655]]
5
70
input = input()[-1] if input == '3': print('bon') elif input in ['0', '1', '6', '8']: print('hon') else: print('hon')
input = input()[-1] if input == '3': print('bon') elif input in ['0', '1', '6', '8']: print('pon') else: print('hon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
57
N = input().split() hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] n = int(N[-1]) if n in hon: print('hon') elif n in pon: print('pon') else: print('bon')
N = input() hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] n = int(N[-1]) if n in hon: print('hon') elif n in pon: print('pon') else: print('bon')
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
78
#include <iostream> using namespace std; int main() { int N; cin >> N; N = N % 10; if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) cout << "hon"; else if (N == 3) cout << "pon"; else cout << "bon"; return 0; }
#include <iostream> using namespace std; int main() { int N; cin >> N; N = N % 10; if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) cout << "hon"; else if (N == 3) cout << "bon"; else cout << "pon"; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
76
n = input() if n[-1:] == str(2) or n[-1:] == str(4) or n[-1:] == str(5) or n[-1:] == str(7) or n[-1:] == str(9): print('hon') if (n[-1:]) == str(0) or n[-1:] == str(1) or n[-1:] == str(6) or n[-1:] == str(8): print('bon') if (n[-1:]) == str(3): print('pon')
n = input() if n[-1:] == str(2) or n[-1:] == str(4) or n[-1:] == str(5) or n[-1:] == str(7) or n[-1:] == str(9): print('hon') if (n[-1:]) == str(0) or n[-1:] == str(1) or n[-1:] == str(6) or n[-1:] == str(8): print('pon') if (n[-1:]) == str(3): print('bon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
150
#include <iostream> using namespace std; typedef std::string str; void FAST() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int main() { FAST(); int n; cin >> n; int r = n % 10; if (r == 3) { cout << "bon\n"; } if (r == 0 || r == 1 || r == 6 || r == 8) { cout << "p...
#include <iostream> using namespace std; typedef std::string str; #define elif else if void FAST() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int main() { FAST(); int n; cin >> n; int r = n % 10; if (r == 3) { cout << "bon\n"; } elif (r == 0 || r == 1 || r == 6 || r...
[["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["+", 0, 1, 0, 191, 51, 83, 0, 46, 0, 35]]
1
115
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int t; cin >> t; t = t - (t / 10) * 10; if (t == 3) { cout << "bon"; } else if (t == 0, t == 1, t == 6, t == 8) { cout << "pon"; } else { cout << "hon"; } }
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int t; cin >> t; t = t - (t / 10) * 10; // cout << t; if (t == 3) { cout << "bon"; } else if (t == 0 || t == 1 || t == 6 || t == 8) { cout << "pon"; } else { cout << "hon"; } }
[["-", 75, 76, 0, 57, 15, 339, 51, 34, 0, 21], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 34, 12, 34, 0, 21], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 15, 339, 51, 34, 12, 34, 12, 34, 0, 21], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
85
n = str(input()) length = int(len(n)) num = int(n[length-1]) if num == 2 or num == 4 or num == 5 or num == 7 or num == 9: print("pon") elif num == 0 or num == 1 or num == 6 or num == 8: print("hon") else: print("bon")
n = str(input()) length = int(len(n)) num = int(n[length-1]) if num == 2 or num == 4 or num == 5 or num == 7 or num == 9: print("hon") elif num == 0 or num == 1 or num == 6 or num == 8: print("pon") else: print("bon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
86
<?php $N = fgets(STDIN); $N_1 = substr($N, -1); if ($N_1 == 3) { echo 'bon'; } elseif ($N_1 == 0 || $N_1 == 1 || $N_1 == 6 || $N_1 == 8) { echo 'pon'; } else { echo 'hon'; }
<?php $N = trim(fgets(STDIN)); $N_1 = substr($N, -1); if ($N_1 == 3) { echo 'bon'; } elseif ($N_1 == 0 || $N_1 == 1 || $N_1 == 6 || $N_1 == 8) { echo 'pon'; } else { echo 'hon'; }
[["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 25]]
6
72
#include <iostream> #include <string> using namespace std; int main() { string s; getline(cin, s); int l = s.length(); char n = s[l - 1] - '0'; if (n == 2 || n == 4 || n == 5 || n == 7) cout << "hon" << endl; if (n == 0 || n == 1 || n == 6 || n == 8) cout << "pon" << endl; if (n == 3) cout <<...
#include <iostream> #include <string> using namespace std; int main() { string s; getline(cin, s); int l = s.length(); char n = s[l - 1] - '0'; if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) cout << "hon" << endl; if (n == 0 || n == 1 || n == 6 || n == 8) cout << "pon" << endl; if (n == 3) ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
116
#include <bits/stdc++.h> using namespace std; int main() { int N, t; cin >> N; string a = to_string(N); if (a.at(a.size() - 1) == 3) { cout << "bon" << endl; } else if (a.at(a.size() - 1) == 0 || a.at(a.size() - 1) == 1 || a.at(a.size() - 1) == 6 || a.at(a.size() - 1) == 8) { cout << "po...
#include <bits/stdc++.h> using namespace std; int main() { int N, t; cin >> N; string a = to_string(N); if (a.at(a.size() - 1) == '3') { cout << "bon" << endl; } else if (a.at(a.size() - 1) == '0' || a.at(a.size() - 1) == '1' || a.at(a.size() - 1) == '6' || a.at(a.size() - 1) == '8') { c...
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
138
# -*- coding: utf-8 -*- n = int(input()) n = str(n) p = n[-1] p = int(p) if p in [2, 4, 5, 7, 9]: print("hon") if p in [0, 1, 6, 8]: print("pon") else: print("bon")
n = int(input()) n = str(n) p = n[-1] p = int(p) if p in [2, 4, 5, 7, 9]: print("hon") if p in [0, 1, 6, 8]: print("pon") if p in [3]: print("bon")
[["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 267], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 70], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0,...
5
76
n = input() h = (2,4,5,7,9) p = (0,1,6,8) b = 3 m = int(n) % 10 if m in h: print("bon") if m in p: print("pon") if m == b: print("hon")
n = input() h = (2,4,5,7,9) p = (0,1,6,8) b = 3 m = int(n) % 10 if m in h: print("hon") if m in p: print("pon") if m == b: print("bon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
73
#include <stdio.h> #include <string.h> int main(void) { char n[100]; int len; scanf("%s", n); len = strlen(n); if (n[len - 1] == '3') { printf("bon\n"); } else if (n[len - 1] == 0 || n[len - 1] == 1 || n[len - 1] == 6 || n[len - 1] == 8) { printf("pon\n"); } else { printf("hon\n")...
#include <stdio.h> #include <string.h> int main(void) { char n[100]; int len; scanf("%s", n); len = strlen(n); if (n[len - 1] == '3') { printf("bon\n"); } else if (n[len - 1] == '0' || n[len - 1] == '1' || n[len - 1] == '6' || n[len - 1] == '8') { printf("pon\n"); } else { printf(...
[["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 23, 0, 16, 12, 16, 12, 103, 0, 104]]
0
122
n = input() n_i = int(n[-1]) if n_i == 3: print("bon") elif n_i==0 or 1 or 6 or 8: print("pon") else: print("hon")
n = input() n_i = int(n[-1]) if n_i == 3: print("bon") elif n_i in [0, 1, 6, 8]: print("pon") else: print("hon")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 70], ["-", 75, 665, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 21], ["-", 0, 57, 75, 665, 15, 679, 31, 679, 17, 354], ["-", 0, 656, 0, 57, ...
5
51
N = input() n = N[len(N)] if n == "2" or n== '4' or n=='5' or n=='7' or n=='9': print("hon") elif n == '0' or n=='1' or n=='6' or n=='8': print('pon') else: print('bon')
N = input() n = N[len(N)-1] if n == "2" or n== '4' or n=='5' or n=='7' or n=='9': print("hon") elif n == '0' or n=='1' or n=='6' or n=='8': print('pon') else: print('bon')
[["+", 0, 1, 0, 662, 12, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 657, 12, 612]]
5
90
import java.io.*; import java.util.*; public class Main { static long pmod = 1000000007L; public static void main(String[] args) throws IOException { // BufferedReader br = new BufferedReader(new //InputStreamReader(System.in)); PrintWriter op = new //PrintWriter(System.out); StringTokenizer st...
import java.io.*; import java.util.*; public class Main { static long pmod = 1000000007L; public static void main(String[] args) throws IOException { // BufferedReader br = new BufferedReader(new //InputStreamReader(System.in)); PrintWriter op = new //PrintWriter(System.out); StringTokenizer st...
[["+", 51, 492, 3, 4, 0, 16, 31, 492, 500, 22], ["+", 51, 492, 3, 4, 0, 16, 31, 492, 0, 131], ["+", 51, 492, 3, 4, 0, 16, 31, 492, 141, 22], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 25], ["+", 49, 200, 51, 492, 3, 4, 0, 16, 17, 33]]
3
143
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i < (int)(n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; char c = s.back(); string ans; if (c == '2' || c == '4' || c == '5' || c == 7 || c == '9') ans = ...
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i < (int)(n); i++) using ll = long long; using namespace std; int main() { string s; cin >> s; char c = s.back(); string ans; if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') ans ...
[["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104]]
1
122
#include <iostream> using namespace std; int main() { int n; cin >> n; if ((!(n - 3) % 10)) cout << "bon"; else if (!(n % 10)) cout << "pon"; else if (!((n - 1) % 10)) cout << "pon"; else if (!((n - 6) % 10)) cout << "pon"; else if (!((n - 8) % 10)) cout << "pon"; else if (!((n - ...
#include <iostream> using namespace std; int main() { int n; cin >> n; if ((!((n - 3) % 10))) cout << "bon"; else if (!(n % 10)) cout << "pon"; else if (!((n - 1) % 10)) cout << "pon"; else if (!((n - 6) % 10)) cout << "pon"; else if (!((n - 8) % 10)) cout << "pon"; else if (!((n ...
[["+", 0, 91, 28, 23, 0, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 23, 0, 91, 28, 23, 0, 25]]
1
217
N = input() n = int(N[-1]) if n == "2" or n == "4" or n == "5" or n == "7" or n == "9": print("hon") elif n == "0" or n == "1" or n == "6" or n == "8": print("pon") else: print("bon")
N = input() n = N[-1] if n == "2" or n == "4" or n == "5" or n == "7" or n == "9": print("hon") elif n == "0" or n == "1" or n == "6" or n == "8": print("pon") else: print("bon")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
91
#include <algorithm> #include <iostream> #include <string> #define flush fflush(stdout) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<ll, int> Pl; const int mod = (int)1e9 + 7, INF = (int)1e9; const int di[4] = {1, 0, -1, 0}, dj[4] = {0, 1, 0, -1}; int main(void) { int n; string...
#include <algorithm> #include <iostream> #include <string> #define flush fflush(stdout) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<ll, int> Pl; const int mod = (int)1e9 + 7, INF = (int)1e9; const int di[4] = {1, 0, -1, 0}, dj[4] = {0, 1, 0, -1}; int main(void) { int n; string...
[["-", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
188
n = str(input()) m = n[2] if m == '2' or m == '4' or m == '5' or m == '7' or m == '9': print('hon') elif m == '0' or m == '1' or m == '6' or m == '8': print('pon') else: print('bon')
n = str(input()) m = n[-1] if m == '2' or m == '4' or m == '5' or m == '7' or m == '9': print('hon') elif m == '0' or m == '1' or m == '6' or m == '8': print('pon') else: print('bon')
[["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612]]
5
90
i=input() l=int(i[-1]) if l==3: print(bon) elif l==0 or l==1 or l==6 or l==8: print(pon) else: print(hon)
i=input() l=int(i[-1]) if l==3: print('bon') elif l==0 or l==1 or l==6 or l==8: print('pon') else: print('hon')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
51
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.length() - 1] == 3) { cout << "bon" << endl; } else if (s[s.length() - 1] == 0 || s[s.length() - 1] == 1 || s[s.length() - 1] == 6 || s[s.length() - 1] == 8) { cout << "pon" << endl; } else cout <...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.length() - 1] == '3') { cout << "bon" << endl; } else if (s[s.length() - 1] == '0' || s[s.length() - 1] == '1' || s[s.length() - 1] == '6' || s[s.length() - 1] == '8') { cout << "pon" << endl; } else ...
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
121
#include <iostream> using namespace std; int main() { string a; cin >> a; if (a[a.size() - 1] == 0 || a[a.size() - 1] == 1 || a[a.size() - 1] == 6 || a[a.size() - 1] == 8) { cout << "pon"; } else if (a[a.size() - 1] == 3) { cout << "bon"; } else { cout << "hon"; } }
#include <iostream> using namespace std; int main() { string a; cin >> a; if (a[a.size() - 1] == '0' || a[a.size() - 1] == '1' || a[a.size() - 1] == '6' || a[a.size() - 1] == '8') { cout << "pon"; } else if (a[a.size() - 1] == '3') { cout << "bon"; } else { cout << "hon"; } }
[["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
114
n = str(input()) if len(n) == 1: nd = n else: nd = n[1:] if nd == "2" or nd == "4" or nd == "5" or nd == "7" or nd == "9": print('hon') elif nd == "0" or nd == "1" or nd == "6" or nd == "8": print('pon') else: print('bon')
n = str(input()) if len(n) == 1: nd = n else: nd = n[-1:] if nd == "2" or nd == "4" or nd == "5" or nd == "7" or nd == "9": print('hon') elif nd == "0" or nd == "1" or nd == "6" or nd == "8": print('pon') else: print('bon')
[["+", 0, 662, 12, 206, 206, 663, 0, 664, 17, 33]]
5
104
import sys A = sys.stdin.readline().rstrip() n = A[-1] if n in [2,4,5,7,9]: print('hon') elif n in [0,1,6,8]: print('pon') else: print('bon')
import sys A = sys.stdin.readline().rstrip() n = A[-1] n = int(n) if n in [2,4,5,7,9]: print('hon') elif n in [0,1,6,8]: print('pon') else: print('bon')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
70
n=int(input()) p=n%10 if(p==2 or p==4 or p==5 or p==7 or p==9): print("hon") elif(p==3): print("pon") else: print("bon")
n=int(input()) p=n%10 if(p==2 or p==4 or p==5 or p==7 or p==9): print("hon") elif(p==3): print("bon") else: print("pon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
63
n=int(input()) a=n%10 if a==3: print('bon') elif n==0: print('pon') elif n==1: print('pon') elif n==6: print('pon') elif n==8: print('pon') else: print('hon')
n=int(input()) a=n%10 if a==3: print('bon') elif a==0: print('pon') elif a==1: print('pon') elif a==6: print('pon') elif a==8: print('pon') else: print('hon')
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22]]
5
76
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(v) v.begin(), v.end() #define vec vector typedef long long ll; const int INF = 1001001001; /* <<stringで読み込んだ数列を一桁ずつint型へ変換>> string str; int N[桁数]; cin >> str; for (int i = 0; i < 桁数; ++i) { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(v) v.begin(), v.end() #define vec vector typedef long long ll; const int INF = 1001001001; /* <<stringで読み込んだ数列を一桁ずつint型へ変換>> string str; int N[桁数]; cin >> str; for (int i = 0; i < 桁数; ++i) { ...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
237
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; int n = k % 10; if (n == 3) { cout << "bon" << endl; } if (n == 1 || n == 0) { cout << "pon" << endl; } if (n == 6 || n == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; int n = k % 10; if (n == 3) { cout << "bon" << endl; } else if (n == 1 || n == 0) { cout << "pon" << endl; } else if (n == 6 || n == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
93
N=int(input()) if N%10==3: print('bon') elif N%10==0 or N%10==1 or N%10==6 or N%10==0: print('pon') else: print('hon')
N=int(input()) if N%10==3: print('bon') elif N%10==0 or N%10==1 or N%10==6 or N%10==8: print('pon') else: print('hon')
[["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612]]
5
60
N=str(input()) n=len(N) a=N[n-1] if a==2: print("hon") if a=='4': print("hon") if a=='5': print("hon") if a=='7': print("hon") if a=='9': print("hon") if a=='0': print("pon") if a=='1': print("pon") if a=='6': print("pon") if a=='8': print("pon") if a=='3': print("bon")
N=str(input()) n=len(N) a=N[n-1] if a=='2': print("hon") if a=='4': print("hon") if a=='5': print("hon") if a=='7': print("hon") if a=='9': print("hon") if a=='0': print("pon") if a=='1': print("pon") if a=='6': print("pon") if a=='8': print("pon") if a=='3': print("bon")
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
150
a=input() n=(a[-1]) if n=='2' or n=='4' or n=='5' or n=='7' or n=='9': print('hon') if n=='0' or n=='1' or n=='6' or n=='8': print('pon') else: print('bon')
a=input() n=(a[-1]) if n=='2' or n=='4' or n=='5' or n=='7' or n=='9': print('hon') elif n=='0' or n=='1' or n=='6' or n=='8': print('pon') else: print('bon')
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
90
N=str(input()) if N[-1]==3: print("bon") elif N[-1]== 0 or N[-1]==1 or N[-1]== 6 or N[-1]==8: print("pon") else : print("hon")
N=str(input()) if N[-1]=="3": print("bon") elif N[-1]== "0" or N[-1]=="1" or N[-1]== "6" or N[-1]=="8": print("pon") else : print("hon")
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1...
5
70
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define fast ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); #define INF 1000000000001 #define DIM 100001 #define mod 1000000007 #define PI 3.141592653589793...
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define fast ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); #define INF 1000000000001 #define DIM 100001 #define mod 1000000007 #define PI 3.141592653589793...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20]]
1
396
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 3) { cout << "bon" << endl; } else if ((N % 10 == 0 && N % 10 == 1) && (N % 10 == 6 && N % 10 == 8)) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 3) { cout << "bon" << endl; } else if ((N % 10 == 0 || N % 10 == 1) || (N % 10 == 6 || N % 10 == 8)) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
[["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 106]]
1
89
n=input() l=len(n) a=[2,4,5,7,9] b=[0,1,6,8] k=n[l-1] if k in a: print('hon') elif k in b: print('pon') else: print('bon')
n=input() l=len(n) a=[2,4,5,7,9] b=[0,1,6,8] k=int(n[l-1]) if k in a: print('hon') elif k in b: print('pon') else: print('bon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
73
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c = n % 10; if (c == 3) { cout << "bon" << endl; } else if (c == 0 && c == 1 && c == 6 && c == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c = n % 10; if (c == 3) { cout << "bon" << endl; } else if (c == 0 || c == 1 || c == 6 || c == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
82
n = input() if n[len(n)-1] in [2,4,5,7,9]: print("hon") elif n[len(n)-1] in [0,1,6,8]: print("pon") else: print("bon")
n = input() if int(n[len(n)-1]) in [2,4,5,7,9]: print("hon") elif int(n[len(n)-1]) in [0,1,6,8]: print("pon") else: print("bon")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]]
5
69
import sys import math u = int(input()) n=str(u) if n[-1]=='0': print('pon') if n[-1]=='3': print('bon') elif int(n[-1])<5 and int(n[-1])%2==0: print('hon') elif int(n[-1])>=5 and int(n[-1])%2==1: print('hon') else: print('pon')
import sys import math u = int(input()) n=str(u) if n[-1]=='0': print('pon') elif n[-1]=='3': print('bon') elif int(n[-1])<5 and int(n[-1])%2==0: print('hon') elif int(n[-1])>=5 and int(n[-1])%2==1: print('hon') else: print('pon')
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
122
#include <iostream> using namespace std; int main() { string n; cin >> n; if (n[n.length() - 1] == '3') { cout << "bon" << endl; } else if (n[n.length() - 1] == '0' || n[n.length() - 1] == '1' || n[n.length() - 1] == '6' || n[n.length() - 1] == '3') { cout << "pon" << endl; } else { ...
#include <iostream> using namespace std; int main() { string n; cin >> n; if (n[n.length() - 1] == '3') { cout << "bon" << endl; } else if (n[n.length() - 1] == '0' || n[n.length() - 1] == '1' || n[n.length() - 1] == '6' || n[n.length() - 1] == '8') { cout << "pon" << endl; } else { ...
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
133
_=input() s=int(_[0]) if s==3: print("bon") elif s in [0, 1, 6, 8]: print("pon") else: print("hon")
_=list(reversed(input())) s=int(_[0]) if s==3: print("bon") elif s in [0, 1, 6, 8]: print("pon") else: print("hon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
52
#include <bits/stdc++.h> using namespace std; // input #define INIT \ std::ios::sync_with_stdio(false); \ std::cin.tie(0); #define VAR(type, ...) \ ...
#include <bits/stdc++.h> using namespace std; // input #define INIT \ std::ios::sync_with_stdio(false); \ std::cin.tie(0); #define VAR(type, ...) \ ...
[["-", 0, 99, 8, 9, 0, 100, 51, 103, 0, 125], ["+", 0, 99, 8, 9, 0, 100, 51, 103, 0, 125]]
1
1,628
N = int(input()) N//=10 if N == 3: print("bon") elif N == 0 or N == 1 or N == 6 or N == 8: print("pon") else: print("hon")
N = int(input()) N%=10 if N == 3: print("bon") elif N == 0 or N == 1 or N == 6 or N == 8: print("pon") else: print("hon")
[["-", 36, 36, 0, 656, 0, 1, 0, 677, 17, 691], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 132]]
5
53
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define reps(i, n) for (int i = 1; i < (int)(n); i++) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)-1); i > 0; i--) #define ALL(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define reps(i, n) for (int i = 1; i < (int)(n); i++) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)-1); i > 0; i--) #define ALL(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
225
n = str(input()) if n[-1]=='2' or n[-1]=='4' or n[-1]=='5' or n[-1]=='7' or n[-1]=='9': print('hon') elif n[-1]=='0'or [-1]=='1'or n[-1]=='6'or [-1]=='8': print('pon') else: print('bon')
n = str(input()) if n[-1]=='2' or n[-1]=='4' or n[-1]=='5' or n[-1]=='7' or n[-1]=='9': print('hon') elif n[-1]=='0' or n[-1]=='1' or n[-1]=='6' or n[-1]=='8': print('pon') else: print('bon')
[["+", 31, 679, 31, 679, 12, 666, 0, 206, 51, 22], ["+", 75, 665, 15, 679, 12, 666, 0, 206, 51, 22]]
5
118
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define repr(i, x, n) for (int i = x; i < (n); i++) #define ALL(x) (x).begin(), (x).end() #define INF 1e9 typedef long long ll; using VI = vector<int>; using VS = vector<string>; using graph = vector<vector<int>>; int main() {...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define repr(i, x, n) for (int i = x; i < (n); i++) #define ALL(x) (x).begin(), (x).end() #define INF 1e9 typedef long long ll; using VI = vector<int>; using VS = vector<string>; using graph = vector<vector<int>>; int main() {...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
181
n = str(input()) a = ["2", "4", "5", "7", "9"] b = ["0", "1", "8"] c = ["3", "6"] if n[-1:] in a: print("hon") elif n[-1:] in b: print("pon") else: print("bon")
n = str(input()) a = ["2", "4", "5", "7", "9"] b = ["0", "1", "6", "8"] c = ["3"] if n[-1:] in a: print("hon") elif n[-1:] in b: print("pon") else: print("bon")
[["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], ["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], [...
5
97
import java.io.InputStream; import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main() { prob(System.in, System.out); } public static void prob(InputStream in, PrintStream out) { Scanner sc = new Scanner(in); String line = sc.nextLine(); int num = Integer.value...
import java.io.InputStream; import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main(String[] args) { prob(System.in, System.out); } public static void prob(InputStream in, PrintStream out) { Scanner sc = new Scanner(in); String line = sc.nextLine(); int num = ...
[["+", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 70], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 73], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22]]
3
152
from sys import stdin import math a=int(stdin.readline()) A=a%10 if (a==0 or a==1) or (a==6 or a==8): print('pon') elif a==3: print('bon') else: print('hon')
from sys import stdin import math a=int(stdin.readline()) A=a%10 if (A==0 or A==1) or (A==6 or A==8): print('pon') elif A==3: print('bon') else: print('hon')
[["-", 15, 679, 31, 23, 0, 679, 31, 666, 0, 22], ["+", 15, 679, 31, 23, 0, 679, 31, 666, 0, 22], ["-", 15, 679, 31, 23, 0, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 23, 0, 679, 12, 666, 0, 22], ["-", 15, 679, 12, 23, 0, 679, 31, 666, 0, 22], ["+", 15, 679, 12, 23, 0, 679, 31, 666, 0, 22], ["-", 15, 679, 12, 23, 0, 679, ...
5
67
s=input()[0] if s=='3': print('bon') elif s in ['0','1','6','8']: print('pon') else: print('hon')
s=input()[-1] if s=='3': print('bon') elif s in ['0','1','6','8']: print('pon') else: print('hon')
[["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612]]
5
56
#include <stdio.h> int main(void) { int N; scanf("%d", &N); if (N % 10 == 0) { printf("hon"); } else if ((N - 1) % 5 == 0) { printf("pon"); } else if ((N - 2) % 5 == 0) { printf("hon"); } else if ((N - 3) % 5 == 0 && N % 2 == 0) { printf("pon"); } else if ((N - 4) % 5 == 0) { printf("h...
#include <stdio.h> int main(void) { int N; scanf("%d", &N); if (N % 10 == 0) { printf("pon"); } else if ((N - 1) % 5 == 0) { printf("pon"); } else if ((N - 2) % 5 == 0) { printf("hon"); } else if ((N - 3) % 5 == 0 && N % 2 == 0) { printf("pon"); } else if ((N - 4) % 5 == 0) { printf("h...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
164
import sys def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) N = S() if N[-1] =='2' or N[-1] =='4' or N[-1] =='5' or N[-1] =='7' or N[-1] =...
import sys def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) N = S() if N[-1] =='2' or N[-1] == '4' or N[-1] =='5' or N[-1] =='7' or N[-1] ...
[["-", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6]]
5
218
N = str(input()) N = int(N[-1]) if N in [2,3,5,7,9]: print("hon") elif N in [0, 1, 6, 8]: print("pon") elif N == 3: print("bon")
N = str(input()) N = int(N[-1]) if N in [2,4,5,7,9]: print("hon") elif N in [0, 1, 6, 8]: print("pon") elif N == 3: print("bon")
[["-", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612]]
5
69
n=input() s=n[-1] if s=="2" or s=="4" or s=="5" or s=="7" or s==9: print("hon") elif s==0 or s==1 or s==6 or s==8: print("pon") else: print("bon")
n=input() s=n[-1] if s=="2" or s=="4" or s=="5" or s=="7" or s=="9": print("hon") elif s=="0" or s=="1" or s=="6" or s=="8": print("pon") else: print("bon")
[["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679,...
5
78
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 10 == 3) cout << "bon"; else if (n % 10 == 0 || n % 10 == 1 || n & 10 == 6 || n % 10 == 8) cout << "pon"; else cout << "hon"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 10 == 3) cout << "bon"; else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) cout << "pon"; else cout << "hon"; return 0; }
[["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 67], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 17, 109]]
1
76
n = input() num = int(n[-1]) if(num == 2 or num == 4 or num == 5 or num == 7 or num == 9): print('hon') elif(num == 1 or num == 6 or num == 8 or num == 0): print('non') else: print('bon')
n = input() num = int(n[-1]) if(num == 2 or num == 4 or num == 5 or num == 7 or num == 9): print('hon') elif(num == 1 or num == 6 or num == 8 or num == 0): print('pon') else: print('bon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
77
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); String[] num = line.split(""); int tar = Integer.parseInt(num[num.length - 1]); if (tar == 2 || tar == 4 || tar == 7 || tar == 9) { System....
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); String[] num = line.split(""); int tar = Integer.parseInt(num[num.length - 1]); if (tar == 2 || tar == 4 || tar == 7 || tar == 9 || tar == 5) { ...
[["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
139
/* */ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep2(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) rep2(i, 0, n) template <class T, class U> void chmin(T &t, U f) { if (t > f) t = f; } template <class T, class U> void chmax(T &t, U f) { if (t < f) t = f; } i...
/* */ #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep2(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) rep2(i, 0, n) template <class T, class U> void chmin(T &t, U f) { if (t > f) t = f; } template <class T, class U> void chmax(T &t, U f) { if (t < f) t = f; } i...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
207
def solve(N): last = int(str(N)[len(N)-1]) if last == 0 or last == 1 or last == 6 or last == 8: print("pon") elif last == 3: print("bon") else: print("hon") N = open(0).read() solve(N)
def solve(N): last = int(str(N)[len(N)-1]) if last == 0 or last == 1 or last == 6 or last == 8: print("pon") elif last == 3: print("bon") else: print("hon") N = input() solve(N)
[["-", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 612], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, ...
5
79
s=input() if s[1] in "24579": print("hon") else:print("pon" if s[1] in "0168" else "bon")
s=input() if s[-1] in "24579": print("hon") else:print("pon" if s[-1] in "0168" else "bon")
[["+", 0, 57, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 0, 41, 0, 666, 0, 206, 206, 664, 17, 33]]
5
42
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) int main() { string N; cin >> N; char C = N[N.size() - 1]; if (C == '3') { cout << "bon" << endl; } else if (C == '0' && C == '1' && C == '6' && C == '8') { cout << "pon" << endl; } else { cout...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) int main() { string N; cin >> N; char C = N[N.size() - 1]; // cout << C << endl; if (C == '3') { cout << "bon" << endl; } else if (C == '0' || C == '1' || C == '6' || C == '8') { cout << "pon" ...
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
108
val = input() if val <= 999: str_val = str(val) val_one = str_val[-1] if val_one in {'2','4','5','9','7'}: print('hon') elif val_one in {'0','1','6','8'}: print('pon') elif val_one == '3': print('bon')
val = input() if int(val) <= 999: str_val = str(val) val_one = str_val[-1] if val_one in {'2','4','5','9','7'}: print('hon') elif val_one in {'0','1','6','8'}: print('pon') elif val_one == '3': print('bon')
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
94
N = gets.to_i n=N%10 if n==3 'bon' elsif n==0||n==1||n==6||n==8 'pon' else 'hon' end
N = gets.to_i n=N%10 if n==3 puts 'bon' elsif n==0||n==1||n==6||n==8 puts 'pon' else puts 'hon' end
[["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 75, 95, 0, 652, 735, 22]]
4
41
package main import ( "fmt" ) func main() { var n string fmt.Scan(&n) a := len(n) ans := n[a-1 : a] if ans == "2" || ans == "4" || ans == "5" || ans == "7" || ans == "9" { fmt.Println("hon") } else if ans == "0" || ans == "1" || ans == "5" || ans == "8" { fmt.Println("pon") } else if ans == "3" { fmt.P...
package main import ( "fmt" ) func main() { var n string fmt.Scan(&n) a := len(n) ans := n[a-1 : a] if ans == "2" || ans == "4" || ans == "5" || ans == "7" || ans == "9" { fmt.Println("hon") } else if ans == "0" || ans == "1" || ans == "6" || ans == "8" { fmt.Println("pon") } else if ans == "3" { fmt.P...
[]
7
144
<?php fscanf(STDIN, "%d", $num); $single_num = substr($num, 2, 1); if ( $single_num == '2' || $single_num == '4' || $single_num == '5' || $single_num == '7' || $single_num == '9' ) { echo 'hon'; } elseif ( $single_num == '0' || $single_num == '1' || $single_num == '6' || $single_num == '8' ) { echo...
<?php fscanf(STDIN, "%d", $num); $single_num = substr($num, -1, 1); if ( $single_num == '2' || $single_num == '4' || $single_num == '5' || $single_num == '7' || $single_num == '9' ) { echo 'hon'; } elseif ( $single_num == '0' || $single_num == '1' || $single_num == '6' || $single_num == '8' ) { ech...
[["-", 0, 11, 12, 613, 3, 3, 0, 28, 0, 612], ["+", 12, 613, 3, 3, 0, 28, 0, 616, 0, 33], ["+", 12, 613, 3, 3, 0, 28, 0, 616, 0, 612]]
6
115
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); OutputStream outputStream = System.out; PrintWriter out = new PrintWriter(outputStream); int T; T = 1; while ((T--) > 0) { // code comes here int...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); OutputStream outputStream = System.out; PrintWriter out = new PrintWriter(outputStream); int T; T = 1; while ((T--) > 0) { // code comes here int...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]]
3
159
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N / 10 == 3) cout << "bon" << endl; else if (N / 10 == 0 || N / 10 == 1 || N / 10 == 6 || N / 10 == 8) cout << "pon" << endl; else cout << "hon" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 3) cout << "bon" << endl; else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) cout << "pon" << endl; else cout << "hon" << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 85], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["-", 51, 16, 31, 16, 12, 16, 31, ...
1
79
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.next(); String ans = N.substring(N.length() - 1); if (ans == "3") System.out.println("bon"); else if (ans.equals("0") || ans.equals("1") || ans.equals("6") || ...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.next(); String ans = N.substring(N.length() - 1); if (ans.equals("3")) System.out.println("bon"); else if (ans.equals("0") || ans.equals("1") || ans.equals("6") || ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 0, 131], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 24], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 25]]
3
140
n = str(input()) N = '{0:03d}'.format(int(n))[2] print(N) if N == '2' or N == '4' or N=='5' or N=='7' or N=='9' : print('hon') elif N=='3': print('bon') else: print('pon')
n = str(input()) N = '{0:03d}'.format(int(n))[2] if N == '2' or N == '4' or N=='5' or N=='7' or N=='9' : print('hon') elif N=='3': print('bon') else: print('pon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
86
import sys from collections import deque import bisect import math import itertools from queue import deque from math import gcd INF = float('inf') mod = 10**9+7 eps = 10**-7 def inp(): return int(sys.stdin.readline()) def inp_list(): return list(map(int, sys.stdin.readline().split())) def lcm(x, y): return (x *...
import sys from collections import deque import bisect import math import itertools from queue import deque from math import gcd INF = float('inf') mod = 10**9+7 eps = 10**-7 def inp(): return int(sys.stdin.readline()) def inp_list(): return list(map(int, sys.stdin.readline().split())) def lcm(x, y): return (x *...
[["-", 12, 652, 3, 4, 0, 206, 206, 663, 0, 102]]
5
186
#include <bits/stdc++.h> using namespace std; int main() { int n; int x; cin >> n; x = n % 100; if (x == 3) { cout << "bon"; } else if (x == 0 || x == 1 || x == 6 || x == 8) { cout << "pon"; } else { cout << "hon"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; int x; cin >> n; x = n % 10; if (x == 3) { cout << "bon"; } else if (x == 0 || x == 1 || x == 6 || x == 8) { cout << "pon"; } else { cout << "hon"; } return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
81
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int n; string ans = "hon"; cin >> n; if (n % 10 == 3) { ans = "bon"; } else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 8) { ans = "pon";...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int n; string ans = "hon"; cin >> n; if (n % 10 == 3) { ans = "bon"; } else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) { ans = ...
[["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
105
if __name__ == "__main__": # num = list(map(int, input().split())) N = int(input()) if(N % 10 == 3): print("hon") elif(N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8): print("pon") else: print("hon")
if __name__ == "__main__": # num = list(map(int, input().split())) N = int(input()) if(N % 10 == 3): print("bon") elif(N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8): print("pon") else: print("hon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
72
#A N = input() X = int(N[-1]) if X == 2 or X == 4 or X == 5 or X == 7 or X == 9: print("hon") if X == 3: print("bon") else: print("pon")
N = input() X = int(N[-1]) if X == 2 or X == 4 or X == 5 or X == 7 or X == 9: print("hon") elif X == 3: print("bon") else: print("pon")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
62
n = int(input()) n10=int(n/10)*10 n1=n-n10 if (n1 == 3): print ("bon") elif (n1 == 0 or n1 == 1 or n== 6 or n == 8): print ("pon") else: print ("hon")
n = int(input()) n10=int(n/10)*10 n1=n-n10 if (n1 == 3): print ("bon") elif (n1 == 0 or n1 == 1 or n1== 6 or n1 == 8): print ("pon") else: print ("hon")
[["-", 15, 23, 0, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 23, 0, 679, 31, 679, 12, 666, 0, 22], ["-", 75, 665, 15, 23, 0, 679, 12, 666, 0, 22], ["+", 75, 665, 15, 23, 0, 679, 12, 666, 0, 22]]
5
69
import sys sys.setrecursionlimit(10**6) def main(input, print): n = list(input()) if n[-1] in ['2','4','5','7','9']: print('hon') elif n[-1] in ['0','1','6','8']: print('pon') else: print('bon') if __name__ == '__main__': main(sys.stdin.readline, print)
import sys sys.setrecursionlimit(10**6) def main(input, print): n = list(input().strip()) if n[-1] in ['2','4','5','7','9']: print('hon') elif n[-1] in ['0','1','6','8']: print('pon') else: print('bon') if __name__ == '__main__': main(sys.stdin.readline, print)
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
117
//#include<bits/stdc++.h> #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <memory.h> #include <numeric> #include <...
//#include<bits/stdc++.h> #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <memory.h> #include <numeric> #include <...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
372
n = input() a = int(n[-1]) b = ["pon","pon","hon","bon","hon","hon","hon","hon","pon","hon","pon"] c = b[a] print(c)
n = input() a = int(n[-1]) b = ["pon","pon","hon","bon","hon","hon","pon","hon","pon","hon","pon"] c = b[a] print(c)
[["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6]]
5
72
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 3) { cout << "bon" << endl; } else if (N % 10 == 0 && N % 10 == 1 && N % 10 == 6 && N % 10 == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 3) { cout << "bon" << endl; } else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } return 0; }
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
88